@import './dark.css';

:root {
  height: 100vh;
  display: flex;
  flex-direction: column;
  --success-color: #00dfa2;
  --failure-color: #ff0060;
  --partial-color: #ffb84c;
  --nodata-color: #dddddd;
}

header {
  margin: 0 auto;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  flex-direction: row;
  height: 4rem;
  transition: transform 0.2s ease;
  transform: translateY(0);
}

header.hidden {
  transform: translateY(-4rem);
}

.headerinner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 65rem;
  width: 55rem;
}

.headerleft {
  display: flex;
  align-items: center;
}

.headerinner img {
  width: 2rem;
  height: auto;
  margin-right: 0.5rem;
}

.headerinner a {
  display: flex;
  align-items: center;
  color: #000;
  font-size: 1.17rem;
}

.headerinner svg {
  margin-left: 0.5rem;
}

body {
  --max-width: 55rem;
  --mobile-width: calc(100% - 2rem);
  background-color: #f6f8fa;
  font-family:
    'Work Sans',
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif,
    'Open Sans',
    'Segoe UI',
    'Noto Sans',
    Helvetica,
    'Apple Color Emoji',
    'Segoe UI Emoji';
  justify-content: center;
  line-height: 20px;
  min-width: 300px;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* 文本样式 */

h1 {
  font-size: 2.3rem;
  margin: 1rem auto;
  color: #202b36;
  font-weight: 700;
}

h2 {
  font-size: 1rem;
  color: #202b36;
}

a {
  color: #3eaf7c;
  text-decoration: none;
}

footer {
  color: #9c9c9c;
  margin: 40px;
  text-align: center;
  padding-bottom: 1rem;
}

.pageContainer {
  background-color: #fff;
  border-radius: 5px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 0.5rem;
}

.pageContainer,
.clientInfo {
  box-shadow: 0 16px 48px #e3e7eb;
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0rem auto 0rem;
}

.headline span {
  padding: 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
}

.headline div {
  font-size: 14px;
  font-weight: 600;
  color: #7c7c7c;
}

.reportContainer {
  margin: 30px auto;
  width: 100%;
}

.statusContainer {
  border-radius: 5px;
  text-align: left;
  padding: 24px 24px 12px 24px;
  margin-top: 30px;
}

.statusStreamContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  max-width: var(--max-width);
}

.statusSquare {
  border-radius: 3px;
  height: 30px;
  width: 10px;
  min-width: 5px;
  margin-right: 3px;
  cursor: pointer;
}

.statusSquare:hover {
  transform: scaleY(1.2);
  overflow: hidden;
}

.statusHeader {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.statusHeader-left {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.statusUptime {
  text-align: right;
  color: #7c7c7c;
  font-size: 12px;
}

.success {
  background-color: var(--success-color);
  color: #fff;
}

.failure {
  background-color: var(--failure-color);
  color: #fff;
}

.nodata {
  background-color: var(--nodata-color);
  color: #7c7c7c;
}

.partial {
  background-color: var(--partial-color);
  color: #fff;
}

.statusIcon {
  margin-right: 0.5rem;
  width: 1.28rem;
}

canvas {
  max-height: 128px;
  min-width: 100px;
  max-width: var(--max-width);
  padding: 0rem 1rem 0rem 1.4rem;
  margin-bottom: 3rem;
}

.span-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 0 2rem 0 1.5rem;
}

.align-left {
  text-align: left;
  color: #7c7c7c;
  font-size: 12px;
}

.align-right {
  text-align: right;
  color: #7c7c7c;
  font-size: 12px;
}

.clientInfo {
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 5px;
  padding: 10px;
  max-width: var(--max-width);
  margin: 2rem auto;
}

.clientInfo span {
  white-space: pre-wrap;
  font-size: 13px;
  color: #555555;
}

/* 定义滚动条的整体宽度 */
::-webkit-scrollbar {
  width: 0.4rem;
  height: 0.5rem;
}

/* 定义滚动条滑块的颜色和样式 */
::-webkit-scrollbar-thumb {
  background-color: #a2a2a2;
  border-radius: 0.5rem;
}

/* 鼠标悬停时改变滑块颜色 */
::-webkit-scrollbar-thumb:hover {
  background-color: #7a7a7a;
}

/* 日志重载时的遮罩 */
.reports-container {
  position: relative;
}

.loading-mask {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 25rem;
  flex-direction: column;
  justify-content: space-evenly;
}

.hidden {
  display: none;
}

.loading-text {
  letter-spacing: 0.2em;
}

/* 加载动画 */
.loadinger {
  width: 60px;
  position: relative;
}

/* 每个矩形 */
.loadinger div {
  width: 10px;
  height: 30px;
  position: absolute;
  border-radius: 3px;
}

.loadinger div:nth-child(1) {
  left: 0;
  animation: l6 1s infinite linear;
  background: linear-gradient(#ff0060 0 0);
}

.loadinger div:nth-child(2) {
  left: 30%;
  animation: l6 1s infinite linear 0.33s;
  background: linear-gradient(#ffb84c 0 0);
}

.loadinger div:nth-child(3) {
  left: 60%;
  animation: l6 1s infinite linear 0.66s;
  background: linear-gradient(#00dfa2 0 0);
}

@keyframes l6 {
  0% {
    top: 0;
  }

  25% {
    top: 10px;
  }

  50% {
    top: 0;
  }

  75% {
    top: -10px;
  }

  100% {
    top: 0;
  }
}

/* 图片跳动动画 */
.statusImg {
  width: 3.5rem;
  height: auto;
  cursor: pointer;
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.statusImg:hover {
  transform: scale(1.1);
}

.icobeat {
  animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* 响应式设计 */
@media screen and (max-width: 640px) {
  .pageContainer {
    margin: 2rem auto;
    width: var(--mobile-width);
    max-width: var(--max-width);
  }

  .span-wrapper {
    padding: 0 1rem 0 1rem;
  }

  .statusUptime {
    margin-left: 0;
    margin-top: 8px;
    text-align: right;
  }

  .statusTitle {
    display: inline-block;
  }

  .statusStreamContainer {
    overflow-x: scroll;
    height: 37px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* 隐藏滚动条 */
  .statusStreamContainer::-webkit-scrollbar {
    display: none;
  }

  .statusSquare {
    min-width: 7px;
    width: 100%;
    margin-right: 1px;
  }

  .statusContainer {
    padding: 10px;
    margin-top: 15px;
  }

  canvas {
    padding: 0rem 0.2rem 0rem 0.5rem;
    margin-bottom: 2rem;
  }

  .clientInfo {
    max-width: calc(100% - 2rem);
  }

  .loading-mask {
    height: 14rem;
  }

  /* 每个矩形 */
  .loadinger div {
    width: 7px;
  }
}

@media screen and (min-width: 641px) and (max-width: 768px) {
  .pageContainer {
    margin: 2rem auto;
    width: var(--mobile-width);
    max-width: var(--max-width);
  }

  .span-wrapper {
    padding: 0 1rem 0 0.5rem;
  }

  .statusUptime {
    margin-left: 0;
    margin-top: 8px;
    text-align: right;
  }

  .statusTitle {
    display: inline-block;
  }

  .statusStreamContainer {
    overflow-x: scroll;
    height: 37px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* 隐藏滚动条 */
  .statusStreamContainer::-webkit-scrollbar {
    display: none;
  }

  .statusSquare {
    min-width: 7px;
    width: 100%;
    margin-right: 2px;
  }

  .statusContainer {
    padding: 10px;
    margin-top: 15px;
  }

  canvas {
    padding: 0rem 0.2rem 0rem 0.5rem;
    margin-bottom: 2rem;
  }

  .clientInfo {
    max-width: calc(100% - 2rem);
  }

  .loading-mask {
    height: 14rem;
  }

  /* 每个矩形 */
  .loadinger div {
    width: 8px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .pageContainer {
    margin: 2rem auto;
    width: var(--mobile-width);
    max-width: var(--max-width);
  }

  .reportContainer {
    max-width: var(--max-width);
  }

  .statusUptime {
    margin-left: 0;
    margin-top: 3px;
    text-align: right;
  }

  .statusTitle {
    display: inline-block;
  }

  .statusStreamContainer {
    overflow-x: scroll;
    height: 37px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* 隐藏滚动条 */
  .statusStreamContainer::-webkit-scrollbar {
    display: none;
  }

  .statusSquare {
    min-width: 7px;
    margin-right: 1px;
  }

  .statusContainer {
    margin-top: 15px;
  }

  canvas {
    margin-bottom: 2rem;
  }

  .clientInfo {
    max-width: calc(100% - 2rem);
    width: var(--max-width);
  }

  .loading-mask {
    height: 20rem;
  }
}

@media screen and (min-width: 1280px) {
  .pageContainer {
    margin: 2rem auto;
    width: var(--mobile-width);
    max-width: var(--max-width);
  }

  .reportContainer {
    max-width: var(--max-width);
  }

  .statusUptime {
    margin-left: 0;
    margin-top: 3px;
    text-align: right;
  }

  .statusTitle {
    display: inline-block;
  }

  .statusStreamContainer {
    overflow-x: scroll;
    height: 37px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* 隐藏滚动条 */
  .statusStreamContainer::-webkit-scrollbar {
    display: none;
  }

  .statusSquare {
    min-width: 7px;
    margin-right: 1px;
  }

  .statusContainer {
    margin-top: 15px;
  }

  canvas {
    margin-bottom: 2rem;
  }

  .loading-mask {
    height: 20rem;
  }
}

.statusItemImageWrapper {
  position: relative;
}

.statusItemImageWrapper .guangquan {
  width: 70%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  transition: all 0.5s;
  animation: 1.5s ease 0s infinite normal none running animation-c2hves;
}

@keyframes animation-c2hves {
  0% {
    opacity: 0.5;
  }

  50% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
